import 'package:fish_redux/fish_redux.dart';

import 'effect.dart';
import 'reducer.dart';
import 'state.dart';
import 'view.dart';
import 'banner_component/component.dart';

class MainViewPage extends Page<MainViewState, Map<String, dynamic>>
    with KeepAliveMixin {
  MainViewPage()
      : super(
          initState: initState,
          effect: buildEffect(),
          reducer: buildReducer(),
          view: buildView,
          dependencies: Dependencies<MainViewState>(
              adapter: null,
              slots: <String, Dependent<MainViewState>>{
                'banner': BannerComponentCon() + BannerComponentComponent(),
              }),
          middleware: <Middleware<MainViewState>>[],
        );
}
